:root{
    background:gray;
}

div{
  padding: 10px 20px;
  min-height: 50px;
}
div:not([id="footer"]){
  background: orange;
}

p{min-height: 30px;}
p:empty{
  border: 1px solid green;
}

:target p {
  background: blue;
  color: #fff;
}
ol{border:1px solid #ccc;}
ol>li{padding: 10px; margin: 0; border-bottom: 3px solid #ccc;}
ol>li:first-child{color: red;}
ol>li:last-child{border-bottom: none;}
ol>li:nth-child(2n){background:red;}
ol > li:nth-last-child(3){background: green;}

.wrapper > div:first-of-type { background: blue;}
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
  background: red;
}
/*或者*/

.wrapper > div:nth-of-type(2n-1),
.wrapper > p:nth-of-type(2n){
  background: red;
}
/*或者*/

.wrapper > div:nth-of-type(odd),
.wrapper > p:nth-of-type(even){
  background: red;
}

li:only-child{background: #fff;}

input[type="text"]:enabled {
  border: 1px solid #f36;
  box-shadow: 0 0 5px #f36;
}

input[type="text"]:disabled{
  box-shadow: none;
}
input[type="submit"] {
  background: green;
  color: #fff;
}

input[type="submit"]:disabled  {
  background: #eee;
  border-color: #eee;
  color: #ccc;
}


.box {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  position: relative;
  background: orange;
  vertical-align: middle;
  border-radius: 100%;
}
.box input {
  opacity: 0;
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  z-index:100;/*使input按钮在span的上一层，不加点击区域会出现不灵敏*/
}

.box span { 
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  position: absolute;
  background: #fff;
  top: 50%;
  left:50%;
  margin: -5px 0  0 -5px;
  z-index:1;
}

input[type="radio"] + span {
  opacity: 0;

}
input[type="radio"]:checked + span {
  opacity: 1;
}

::selection{background: orange;color: red;}
::-moz-selection{background: orange; color: red;}

input[type="text"]:-moz-read-only{
  border-color: blue;
}
input[type="text"]:read-only{
  border-color: blue;
}
textarea:-moz-read-only{
  border: 1px solid #ccc;
  height: 50px;
  resize: none;
  background: red;
}
textarea:read-only{
  border: 1px solid #ccc;
  height: 50px;
  resize: none;
  background: red;
}
input[type="text"]:-moz-read-write{
  border:2px solid green;
}
input[type="text"]:read-write{
  border:2px solid green;
}


.box1 h3{
  text-align:center;
  position:relative;
  top:80px;
}
.box1 {
  display: block;
  width:70%;
  height:200px;
  background:#FFF;
  margin:40px auto;
}

.effect{
  position:relative;       
    -webkit-box-shadow:0px 1px 4px rgba(200, 110, 30, 0.8), 0 0 40px rgba(80, 190, 250, 0.8) inset;
       -moz-box-shadow:0px 1px 4px rgba(200, 110, 30, 0.8), 0 0 40px rgba(80, 190, 250, 0.8) inset;
            box-shadow:0px 1px 4px rgba(200, 110, 30, 0.8), 0 0 40px rgba(80, 190, 250, 0.8) inset;
}
.effect::before, .effect::after{
    content:"";
    position:absolute; 
    z-index:-999;
    -webkit-box-shadow:0px 0px 20px rgba(250,40,90,0.8);
    -moz-box-shadow:0px 0px 20px rgba(250,40,90,0.8);
    box-shadow:0px 0px 20px rgba(250,40,90,0.8);
    top:50%;
    bottom:0;
    left:10px;
    right:10px;
    -moz-border-radius:100px / 10px;
    border-radius:100px / 10px;
}